<!DOCTYPE html>
<html lang="en"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>MyPetstore</title>
</head>
<body>
<div th:replace="common/admintop"></div>

<div id="Content">

    <div id="BackLink">
        <a href="/admin/viewAdminMain">Back</a>
    </div>

    <p align="center"><font color="green" th:text="${removeUserMsg}"></font></p>

    <div id="Catalog">

        <h3>User Information</h3>

        <table class="rwd-table">
            <tr  class="trHead">
                <th><b>Username</b></th>
                <th><b></b></th>
            </tr>
            <tr th:each="user:${userList}">
                <td><a th:href="@{/admin/viewEditAccount(username=${user.username})}" th:text="${user.getUsername()}">username</a></td>
                <td><a th:href="@{/admin/viewEditAccount(username=${user.username})}" class="btn">edit</a></td>
                <td><a th:href="@{/admin/removeUser(username=${user.username})}"class="btn">remove</a></td>
            </tr>
        </table>

    </div>
</div>

<div th:replace="common/bottom"></div>
</body>
</html>